﻿using System;
using System.Xml.Serialization;

namespace EpiNEXT.Core.Fields.Properties
{
    [Serializable()]
    public class Color
    {
        [XmlElement]
        public byte A { get; set; }
        [XmlElement]
        public byte B { get; set; }
        [XmlElement]
        public byte G { get; set; }
        [XmlElement]
        public byte R { get; set; }

        public Color()
        {
            A = 0;
            R = 0;
            G = 0;
            B = 0;
        }

        public Color(byte a, byte r, byte b, byte g)
        {
            A = a;
            R = r;
            G = g;
            B = b;
        }
    }
}
